package db.nio;


import java.nio.ByteBuffer;

/**
 * 解码器
 * Created by daibin on 16-9-14.
 */
public interface Decoder<T> {

    /**
     * 解码
     * @param buffer
     * @return
     */
    T decode(ByteBuffer buffer);
}
